Matrix basics
Dot product (projection product)
Properties
#TODO: add examples here
- commutative
- distribute over addition
- associative over scalar multiplication
Cosine & dot product
Projection
- scalar projection (B projected on A) => a number (vector size) as result
- vector projection (B projected on A) => a vector as result
Changing basis
Basis is a set of n vectors which are linearly independent and form an n-dimensional space, i.e. if a, b, and c are linearly independent, for any
According to vector projection formula, project A on the new basis
thus, A in the new basis is:
Application of changing basis
Matrix multiplication
Matrices make transformations on vectors, potentially changing their magnitude and direction.
Key to solving simultaneous equation problems is appreciating how vectors are transformed by matrices, which is the heart of linear algebra.
Matrix Inverses
Gaussian elimination, also known as row reduction, is an algorithm in linear algebra for solving a system of linear equations.
For
The idea is using row operations on both A and S until A has a row echelon form:
then you can calculate
Gaussian elimination can help in calculating inverse matrix
->
Determinant
For
the determinant is
when